import type { FlowNode } from '@/views/flowDesign/nodes/type'
//返回值类型
export type Result<T> = {
    success: boolean
    code: number
    message: string
    data: T
    dataList: Array<T>
    total: number
}
//分页类型
export type page = {
    page:number
    limit:number
}
//流程信息数据
export type FlowInfo = {
    id: number,
    no: string,//编号
    name: string,//流程名称
    isPc: number,//pc端适配
    isMove: number,//移动端适配
    type: string,//流程类型名称
    currentVersion:string,
    createTime:string,
    updateTime:string,
    exist:number
}
//流程版本数据
export type FlowVersion = {
    id: number,//id
    fileId: number,//流程文件id
    name: string,//版本名称
    state: number,//状态（0、上架；1、下架）
    createTime: string,//创建时间
    updateTime:string,//修改时间
    exist:number,//是否删除
}
//流程表单数据
export type FlowForm = {
    id: string,//id
    flowInfoId: number,//流程信息id
    versionName: string,//版本名称
    mvFormJson: object[],//移动端表单
    pcFormJson: object[],//PC端表单
    flowBpmnXml: string,
    lowFlowJson: string,
    processModel: ProcessModel,
    createTime: string,//创建时间
    updateTime:string,//修改时间
    exist:number,//是否删除
    state:number,
}
//LowFlow结构
export type ProcessModel = {
    code: string,
    name: string,
    icon: {
      name: string,
      color: string
    },
    process: FlowNode,
    enable: true,
    version: 1,
    sort: 0,
    groupId: string,
    remark: string
}
//任务结构
export type TaskInfoDto = {
    busKey:string,//业务id(系统内部的业务ID，用于系统内部数据实现)
    processInstanceId:string,//流程实例id(flowable的流程实例id)
    flowInfoId:string,//流程定义id
    value:object //定义流程提交值
}
//任务结构
export type FlowNodeOption = {
    id:string,
    agree:number,
    refuse:number,
    returnData:number,
    transmit:number,
    delegate:number,
    countersign:number,
    reduceVisa:number
}